﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="viewKh.aspx.cs" Inherits="manager_temt_TaskFp_viewKh" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>验收任务</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <section class="content-header">
        <h1>任务相关
            <small>任务详情</small>
        </h1>
        <ol class="breadcrumb">
            <li><a><i class="fa fa-dashboard"></i>主页</a></li>
            <li><a href="userManager.aspx">任务相关</a></li>
            <li class="active">任务详情</li>
        </ol>
    </section>

    <section class="content">
        <div class="box box-primary">
            <div class="box-body">
                <table class="table table-bordered">
                    <tr>
                        <td style="vertical-align: middle">任务标题</td>
                        <td>
                            <input type="text" id="txt_title" class="form-control" runat="server" readonly="true" /></td>
                    </tr>
                    <tr>
                        <td style="vertical-align: middle">任务描述</td>
                        <td>
                            <textarea class="form-control" style="height: 100px;" id="txt_detail" runat="server"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td style="vertical-align: middle">结束日期</td>
                        <td>
                            <input type="text" id="txt_rq_yjs" class="form-control" runat="server" readonly="true" />
                        </td>
                    </tr>
                    <tr>
                        <td style="vertical-align: middle">考核岗位</td>
                        <td><a data-toggle="modal" data-target="#moduleManager_zxgw">
                            <input type="text" id="ZRR_psid_mc" class="form-control" runat="server" readonly="true" /></a>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="box-footer">
                <a href="Default.aspx" class="btn btn-warning">返回</a>
                <asp:Button ID="Button1" runat="server" class="btn btn-primary pull-right" Text="确认分配" OnClientClick="return StartTask()" OnClick="Button1_Click" />
            </div>
        </div>
        <div class="modal fade" id="moduleManager_zxgw" role="dialog" aria-labelledby="moduleManagerLabel">
            <div class="modal-dialog" role="document" style="width: 1000px">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title">选择考核岗位(单击名称选择)</h4>
                    </div>
                    <div class="modal-body">
                        <div class="tab-content">
                            <%=Html_Dept_Detail_zxgw  %>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div style="display: none;">
            <input type="text" id="Edit_Id" runat="server" value="0" />
            <input type="text" id="dept_id" runat="server" />

            <input type="text" id="ZRR_psid" runat="server" value="0" />


        </div>
    </section>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptPlaceHolder" runat="Server">
    <script src="/reference/plugins/moment/moment.min.js"></script>
    <script src="/reference/plugins/moment/moment-with-locales.min.js"></script>
    <script src="/reference/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script>
        function StartTask() {
            var isRe = confirm("此任务经过分配后，操作无法撤销！\n\n您确认分配正确并且确认分配此任务吗？");
            return isRe;
        }

        $(document).ready(function () {
            var type = $("#ContentPlaceHolder_dept_id").val();
            var arr_dept = type.split("|");
            for (var i = 0; i < arr_dept.length; i++) {

                $("#table_zxgw").DataTable(
                               {
                                   "columnDefs": [
                                       { "targets": [0], "visible": false }
                                   ],
                                   "autoWidth": true,
                                   "ordering": false,
                                   "scroll": true,
                                   "language": {
                                       "url": "/reference/plugins/datatables/Chinese.json"
                                   }
                               });
            }
            var type = $("#ContentPlaceHolder_type_value").val();
        });
        function SetZxgw(id, mc) {
            $("#ContentPlaceHolder_ZRR_psid").val(id);
            $("#ContentPlaceHolder_ZRR_psid_mc").val(mc);
            $('#moduleManager_zxgw').modal('hide')
        }

    </script>



</asp:Content>


